-
Notifications
You must be signed in to change notification settings - Fork 469
Rewatch cli refactor #7551
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Rewatch cli refactor #7551
Conversation
rescript
@rescript/darwin-arm64
@rescript/darwin-x64
@rescript/linux-arm64
@rescript/linux-x64
@rescript/win32-x64
commit: |
@nojaf to answer you on your comment here rescript-lang/rewatch#162 (comment). |
Not sure if relevant here, but I still see
I got this with |
I think the right time for this would be when
I prematurely already look for a binary named |
If I run
|
Upstream the changes of rescript-lang/rewatch#162 and adjusted the PR description.
This PR refactors the CLI structure of rewatch to enhance clarity and improve the usability of subcommands and their associated arguments.
Key Changes:
Introduction of New Subcommands:
legacy
: Acts as a passthrough to the legacy CLIrescript
. In the future, this will be namedrescript-legacy
.dump
: Serves as an alias forlegacy dump
.format
: Serves as an alias forlegacy format
.Breaking Change:
--compiler-args
argument has been replaced with a new subcommandcompiler-args
. I assume this change will have minimal impact. I guess this is mainly used as a debug command.rewatch --bsc-path=something build
. This change was made because the number of arguments on the top level was getting out of hand and hard to track.Benefits:
The refactored structure ensures a more intuitive CLI experience by clearly delineating which arguments apply to specific subcommands.
The introduction of aliases (dump and format) simplifies common operations and aims to make the transition to rewatch as the default build system easier.
The new compiler-args subcommand makes the CLI behavior more consistent and predictable.